#include<bits/stdc++.h>
#include<iostream>
using namespace std;
#define YES cout<<"YES"<<endl;
#define NO cout<<"NO"<<endl;
const int N=2e5+5;
typedef vector<int> vi; 
#define pb push_back
typedef long long ll;
typedef long double ld; 
typedef vector<int>  vi;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
int main()
{
    string s;
    cin>>s;
    if(s[0]==s[1]&&s[1]==s[2]&&s[2]==s[3]){
        puts("Weak");
    }
    else{
        int f=0;
        for(int i=1;i<4;i++){
            if(s[i-1]=='9'){
                if(s[i]=='0'){
                    f++;
                }
            }
            else{
                if(s[i]==s[i-1]+1){
                    f++;
                }
            }
        }
        if(f==3)puts("Weak");
        else puts("Strong");
    }
    
}